
 
<!DOCTYPE html>
<html>
 <head>
  
  <title>About</title>
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <style>
  .table{
   width:90%;
   

  }
  </style>
 </head>
  <body>
       <!--  <form action="/admin/product/{{$one->prductid}}" method="post" accept-charset="utf-8">
            {{csrf_field()}}
            @method("put")
            请输入商品名称:<input type="text" name="productname" value="{{$one->productname}}"><br>

            请选择类型:
                <select name="typename" value="{{$one->typename}}">
                <option>类型选择</option>
                 
                @foreach($type as $types)
                <option>{{$types->typename}}</option>
                @endforeach
                
        
            </select><br>

            请输入商品价格:<input type="text" name="price" value="{{$one->price}}"><br>
           
            请输入生产地:<input type="text" name="comp" value="{{$one->comp}}"><br>
            请输入商品简介:<input type="text" name="intro" value="{{$one->intro}}"><br>
            <input type="submit" ="提交">
        </form> -->
        <form class="form-horizontal" role="form"  action="/admin/product/{{$one->prductid}}" method="post" accept-charset="utf-8">
{{csrf_field()}}
@method("put")
  <div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">请输入商品名称:</label>
    <div class="col-sm-2">
      <input type="text"  name="productname" value="{{$one->productname}}" class="form-control" id="firstname" placeholder="请输入商品名称">
    </div>
  </div>

 <div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">请选择类型:</label>
    <div class="col-sm-2">
      <select name="typename" value="{{$one->typename}}">
                <option>类型选择</option>
                 
                @foreach($type as $types)
                <option>{{$types->typename}}</option>
                @endforeach
                
        
            </select><br>
    </div>
  </div>

<div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">请输入商品价格:</label>
    <div class="col-sm-2">
      <input type="text"  name="price" value="{{$one->price}}" class="form-control" id="firstname" placeholder="请输入价格">
    </div>
  </div>

  <div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">请输入生产地:</label>
    <div class="col-sm-2">
      <input type="text" name="comp" value="{{$one->comp}}" class="form-control" id="firstname" placeholder="请输入生产地">
    </div>
  </div>

<div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">请输入商品简介:</label>
    <div class="col-sm-2">
      <input type="text" name="intro" value="{{$one->intro}}" class="form-control" id="firstname" placeholder="请输入商品简介">
    </div>
  </div>

  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">提交</button>
    </div>
  </div>
</form>
*
    </body>
</html>


